/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package org.tnmk.worktime.gui.widget;

import java.awt.Frame;
import org.tnmk.worktime.gui.widget.AutoHideHandler;
import org.tnmk.worktime.gui.widget.PanelPopup;

/**
 *
 * @author tnmkhoi
 */
public class AutoHidePanelPopup extends MessagePanel {

  private final AutoHideHandler autoHideHandler;

  public AutoHidePanelPopup(Frame parent, int showPeriod) {
    super();
    autoHideHandler = new AutoHideHandler(new PanelPopup(parent, this), showPeriod);
  }
  
  @Override
  public void show(){
    autoHideHandler.show();
  }
  
}
